Skip to content

Comments

feat(clerk-js): OrgProfile billing page and new subscription methods#5423

Merged
aeliox merged 27 commits intomainfrom
keiran/org-profile-pricing-table
Mar 26, 2025
Merged

feat(clerk-js): OrgProfile billing page and new subscription methods#5423
aeliox merged 27 commits intomainfrom
keiran/org-profile-pricing-table

Conversation

@aeliox
Copy link
Contributor

@aeliox aeliox commented Mar 21, 2025

Description

Adds billing page (and PricingTable) to the OrgProfile along with the new usePlans hook.

Also adds two subscription methods to get active subscriptions for the current user and the current org.

Renames the PlanDetailDrawer -> SubscriptionDetailDrawer.

Resolves COM-184 COM-146

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

@changeset-bot
Copy link

changeset-bot bot commented Mar 21, 2025

🦋 Changeset detected

Latest commit: 3fbf27d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 22 packages
Name Type
@clerk/localizations Patch
@clerk/clerk-js Patch
@clerk/shared Patch
@clerk/types Patch
@clerk/clerk-react Patch
@clerk/chrome-extension Patch
@clerk/clerk-expo Patch
@clerk/agent-toolkit Patch
@clerk/astro Patch
@clerk/backend Patch
@clerk/elements Patch
@clerk/expo-passkeys Patch
@clerk/express Patch
@clerk/fastify Patch
@clerk/nextjs Patch
@clerk/nuxt Patch
@clerk/react-router Patch
@clerk/remix Patch
@clerk/tanstack-react-start Patch
@clerk/testing Patch
@clerk/vue Patch
@clerk/themes Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Mar 21, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
clerk-js-sandbox ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 26, 2025 6:16pm

@aeliox aeliox changed the title feat(commerce): OrgProfile billing page and new subscription methods feat(clerk-js): OrgProfile billing page and new subscription methods Mar 21, 2025
Copy link
Contributor

@alexcarpenter alexcarpenter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like maybe the pricing table and checkout components are re-rendering multiple times causing the table to flicker on load, then opening checkout opens drawer/closes then reopens.

Screen.Recording.2025-03-24.at.11.31.01.AM.mov

Copy link
Contributor

@alexcarpenter alexcarpenter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good so far, do you think there will be redirect urls for both checkout complete and subscription cancel callbacks?

@aeliox aeliox merged commit e20fb6b into main Mar 26, 2025
30 checks passed
@aeliox aeliox deleted the keiran/org-profile-pricing-table branch March 26, 2025 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants